<?php 
// $query = new WP_Query( 'post_type=book');
$query = new WP_Query(array(
   // 'paged'          => get_query_var('paged'),
    'post_type'      => 'post',
    'posts_per_page' => 5,
	'cat' => 2,
  /*  'tax_query'      => array(
        // Note: tax_query expects an array of arrays!
        array(
            'taxonomy' => 'genres', // my guess
            'field'    => 'id',
            'terms'    => 13,
        ),
    ), */
));
?><div id="pilihaneditorscroll" style="max-height: 850px;overflow: hidden;">
<?php if ( $query->have_posts() ) { 

			while ( $query->have_posts() ) : $query->the_post(); 
				
								if (has_post_thumbnail()){
								$thumb_id = get_post_thumbnail_id();
								$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'recent-thumbnails', true);
								$thumb_url = $thumb_url_array[0];}
								else $thumb_url ="";
														?>
				
					<div class="font10 margin2">
                    	<span class="glyphicon glyphicon-time"></span>&nbsp;<?php the_time("l, d F Y");?>  <?php the_time("g:i a"); ?> | <span class="glyphicon glyphicon-user"></span>&nbsp;<?php the_author_posts_link(); ?>
                        <div style="color:#FFF"><?php the_ratings();?><span class="glyphicon glyphicon-comment"></span>&nbsp;<?php comments_number( '0', '1', '% ' );?> | <span class="glyphicon glyphicon-eye-open"></span>&nbsp;<?php the_views()?></div>

						<div><a class="fontjudul2" href="<?php the_permalink(); ?>"><?php the_title(); ?> <a/></div>
                        <div class="row">
                            <div class="col-md-4">
                                <div class="imgkiri2">
                                    <img src="<?php echo $thumb_url ?>" class="imgukuran2"/>
                                </div>
                            </div>
                            <div class="col-md-8 textpadd9 abu2" style="color:#fffffa">
                                  <?php the_excerpt(); ?>
                            </div>
                        </div>
                    </div>
                    <div class="hr5"></div>
					<?php endwhile; }
					wp_reset_query();
					?>
					
					<div style="background-color: #D2322D;border: 1px solid #AC2925; width:100%; height:30px"><a class="fontjudul3" href="<?php echo get_site_url() ?>/ceritapilihan" >Berikutnya >></a> </div>
					</div>
               